package com.train.daily.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.daily.api.DailyTrainSkTokenApi;
import com.train.daily.dto.token.DailyTrainSkTokenValidDTO;
import com.train.daily.dto.token.DailyTrainTokenQueryLeftDTO;
import org.springframework.stereotype.Component;

@Component
public class DailyTrainSkTokenApiFallback implements DailyTrainSkTokenApi {

    @Override
    public CommonResp decrementSkToken(DailyTrainSkTokenValidDTO dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }

    @Override
    public CommonResp getSkToken(DailyTrainTokenQueryLeftDTO dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
